amzqr "$myASTROPORT/?qrcode=$G1PUB&junesec=$PASsec&askpass=$HPass&... contain /secret.june with AES.crypto secured | base64 -w 0 | jq -sRr '@uri'
parent
e98d0d1ebc
commit
d9ebd8b955
|
@ -61,10 +61,10 @@ $MY_PATH/../tools/jaklis/jaklis.py -n $myCESIUM -k $MYPLAYERKEY send -d "${QRCOD
|
|||
|
||||
###################################################################################################
|
||||
# THAT=$2 AND=$3 THIS=$4 APPNAME=$5 WHAT=$6 OBJ=$7 VAL=$8
|
||||
### amzqr "$myASTROPORT/?qrcode=$G1PUB&sslpassdunikeysec=$PASsec&askpass=$HPass&tw=$ASTRONAUTENS" \
|
||||
### amzqr "$myASTROPORT/?qrcode=$WISHKEY&sslpassdunikeysec=$PASsec&asksalt=$HPass&flux=$VOEUNS&tw=$ASTRONAUTENS" \
|
||||
### amzqr "$myASTROPORT/?qrcode=$G1PUB&junesec=$PASsec&askpass=$HPass&tw=$ASTRONAUTENS" \
|
||||
### amzqr "$myASTROPORT/?qrcode=$WISHKEY&junesec=$PASsec&asksalt=$HPass&flux=$VOEUNS&tw=$ASTRONAUTENS" \
|
||||
###
|
||||
if [[ $AND == "sslpassdunikeysec" ]]; then
|
||||
if [[ $AND == "junesec" ]]; then
|
||||
echo "♥BOX♥BOX♥BOX♥BOX♥BOX"
|
||||
echo "MAGIC WORLD ASTRONAUT & WISHES"
|
||||
|
||||
|
|
|
@ -93,9 +93,9 @@ mkdir -p ~/.zen/tmp/$MOATS
|
|||
## LE MOT DE PASSE DU PLAYER PEUT DECOUVRIR LE SECRET (
|
||||
## SEC PASS PROTECTED QRCODE : base58 secFromDunikey.openssl(pass)
|
||||
secFromDunikey=$(cat ~/.zen/tmp/qrtw.dunikey | grep "sec" | cut -d ' ' -f2)
|
||||
echo "$secFromDunikey" > ~/.zen/tmp/${MOATS}/${PSEUDO}.sec
|
||||
echo "SALT=\"$SALT\"; PEPPER=\"$PEPPER\"" > ~/.zen/tmp/${MOATS}/${PSEUDO}.sec
|
||||
openssl enc -aes-256-cbc -md sha512 -pbkdf2 -iter 100000 -salt -in ~/.zen/tmp/${MOATS}/${PSEUDO}.sec -out "$HOME/.zen/tmp/${MOATS}/enc.${PSEUDO}.sec" -k "$SALT" 2>/dev/null
|
||||
PASsec=$(cat ~/.zen/tmp/${MOATS}/enc.${PSEUDO}.sec | base58)
|
||||
PASsec=$(cat ~/.zen/tmp/${MOATS}/enc.${PSEUDO}.sec | base64 -w 0 | jq -sRr '@uri' )
|
||||
HPass=$(echo "$SALT" | sha512sum | cut -d ' ' -f 1 )
|
||||
qrencode -s 12 -o $HOME/.zen/game/players/${PLAYER}/QRsec.png $PASsec
|
||||
|
||||
|
@ -104,7 +104,7 @@ mkdir -p ~/.zen/tmp/$MOATS
|
|||
convert -gravity southeast -pointsize 25 -fill black -draw "text 30,30 \"$PEPPER\"" ~/.zen/tmp/${MOATS}/layer1.png ~/.zen/tmp/${MOATS}/result.png
|
||||
|
||||
## MAKE amzqr WITH astro:// LINK
|
||||
amzqr "$myASTRONEF/?qrcode=$WISHKEY&sslpassdunikeysec=$PASsec&asksalt=$HPass&flux=$VOEUNS&tw=$ASTRONAUTENS" \
|
||||
amzqr "$myASTRONEF/?qrcode=$WISHKEY&junesec=$PASsec&asksalt=$HPass&flux=$VOEUNS&tw=$ASTRONAUTENS" \
|
||||
-d "$HOME/.zen/game/world/$PEPPER/$WISHKEY" \
|
||||
-l H \
|
||||
-p ~/.zen/tmp/${MOATS}/result.png -c
|
||||
|
@ -181,7 +181,7 @@ convert -gravity northwest -pointsize 50 -fill black -draw "text 30,300 \"$PEPPE
|
|||
"text": "'${TEXT}'",
|
||||
"tags": "'G1Voeu G1${PEPPER} ${PLAYER}'",
|
||||
"asksalt": "'${HPass}'",
|
||||
"sslpassdunikeysec" : "'${ENCODING}'"
|
||||
"junesec" : "'${ENCODING}'"
|
||||
}
|
||||
]
|
||||
' > ~/.zen/game/world/$PEPPER/$WISHKEY/${PEPPER}.voeu.json
|
||||
|
|
|
@ -253,6 +253,7 @@ mkdir -p ${YTEMP}
|
|||
echo "VIDEO $YTURL"
|
||||
|
||||
LINE="$(yt-dlp $BROWSER --print "%(id)s&%(title)s" "${YTURL}")"
|
||||
echo $LINE
|
||||
YID=$(echo "$LINE" | cut -d '&' -f 1)
|
||||
TITLE=$(echo "$LINE" | cut -d '&' -f 2- | detox --inline)
|
||||
|
||||
|
@ -263,11 +264,18 @@ TITLE=$(echo "$LINE" | cut -d '&' -f 2- | detox --inline)
|
|||
-S res,ext:mp4:m4a --recode mp4 --no-mtime --embed-thumbnail --add-metadata \
|
||||
-o "${YTEMP}/$TITLE.%(ext)s" "$YTURL"
|
||||
|
||||
if [[ ! $(ls "${YTEMP}/*.mp4") ]]; then
|
||||
DFILE=$(ls ${YTEMP}/*.mp4)
|
||||
echo "LISTING ${YTEMP} : $DFILE"
|
||||
|
||||
if [[ $DFILE == "" ]]; then
|
||||
## SECOND TRY
|
||||
/usr/local/bin/youtube-dl --no-playlist $BROWSER --download-archive $HOME/.zen/.yt-dlp.list -S res,ext:mp4:m4a --no-mtime --embed-thumbnail --add-metadata -o "${YTEMP}/$TITLE.%(ext)s" "$YTURL"
|
||||
fi
|
||||
[[ ! $(ls "${YTEMP}/*.mp4") ]] && espeak "cannot download file" && exit 1
|
||||
|
||||
DFILE=$(ls ${YTEMP}/*.mp4)
|
||||
echo "LISTING ${YTEMP} : $DFILE"
|
||||
|
||||
[[ $DFILE == "" ]] && espeak "cannot find file" && exit 1
|
||||
|
||||
ZFILE="$TITLE.mp4"
|
||||
echo "$ZFILE"
|
||||
|
|
|
@ -194,11 +194,11 @@ DISCO="https://astroport.$(myHostName)/?salt=${USALT}&pepper=${UPEPPER}&logout=$
|
|||
qrencode -s 12 -o ~/.zen/game/players/${PLAYER}/QR.ASTRONAUTENS.png "$LIBRA/ipns/${ASTRONAUTENS}"
|
||||
|
||||
|
||||
## SEC PASS PROTECTED QRCODE : base58 secFromDunikey.openssl(pass)
|
||||
secFromDunikey=$(cat ~/.zen/game/players/${PLAYER}/secret.dunikey | grep "sec" | cut -d ' ' -f2)
|
||||
echo "$secFromDunikey" > ~/.zen/tmp/${MOATS}/${PSEUDO}.sec
|
||||
openssl enc -aes-256-cbc -salt -in ~/.zen/tmp/${MOATS}/${PSEUDO}.sec -out "$HOME/.zen/tmp/${MOATS}/enc.${PSEUDO}.sec" -k $PASS 2>/dev/null
|
||||
PASsec=$(cat ~/.zen/tmp/${MOATS}/enc.${PSEUDO}.sec | base58)
|
||||
## SEC PASS PROTECTED QRCODE : base58 secret.june / openssl(pass)
|
||||
#~ secFromDunikey=$(cat ~/.zen/game/players/${PLAYER}/secret.dunikey | grep "sec" | cut -d ' ' -f2)
|
||||
#~ echo "$secFromDunikey" > ~/.zen/tmp/${MOATS}/${PSEUDO}.sec
|
||||
openssl enc -aes-256-cbc -md sha512 -pbkdf2 -iter 100000 -salt -in ~/.zen/game/players/${PLAYER}/secret.june -out "$HOME/.zen/tmp/${MOATS}/enc.${PSEUDO}.sec" -k "$PASS" 2>/dev/null
|
||||
PASsec=$(cat ~/.zen/tmp/${MOATS}/enc.${PSEUDO}.sec | base64 -w 0 | jq -sRr '@uri' )
|
||||
HPass=$(echo "$PASS" | sha512sum | cut -d ' ' -f 1)
|
||||
qrencode -s 12 -o $HOME/.zen/game/players/${PLAYER}/QRsec.png $PASsec
|
||||
|
||||
|
@ -208,7 +208,7 @@ DISCO="https://astroport.$(myHostName)/?salt=${USALT}&pepper=${UPEPPER}&logout=$
|
|||
## convert -gravity southeast -pointsize 50 -fill black -draw "text 40,40 \"$PEPPER\"" ~/.zen/tmp/${MOATS}/layer1.png ~/.zen/tmp/${MOATS}/result.png
|
||||
|
||||
## MAKE amzqr WITH astro:// LINK
|
||||
amzqr "$myASTRONEF/?qrcode=$G1PUB&sslpassdunikeysec=$PASsec&askpass=$HPass&tw=$ASTRONAUTENS" \
|
||||
amzqr "$myASTRONEF/?qrcode=$G1PUB&junesec=$PASsec&askpass=$HPass&tw=$ASTRONAUTENS" \
|
||||
-d $HOME/.zen/game/players/${PLAYER} \
|
||||
-l H \
|
||||
-p ~/.zen/tmp/${MOATS}/result.png
|
||||
|
@ -428,7 +428,7 @@ ln -s ~/.zen/game/players/${PLAYER} ~/.zen/game/players/.current
|
|||
|
||||
# PASS CRYPTING KEY
|
||||
#~ echo; echo "Sécurisation de vos clefs... "; sleep 1
|
||||
openssl enc -aes-256-cbc -md sha512 -pbkdf2 -iter 100000 -salt -in "$HOME/.zen/game/players/${PLAYER}/secret.june" -out "$HOME/.zen/game/players/${PLAYER}/enc.secret.june" -k $PASS 2>/dev/null
|
||||
openssl enc -aes-256-cbc -md sha512 -pbkdf2 -iter 100000 -salt -in "$HOME/.zen/game/players/${PLAYER}/secret.june" -out "$HOME/.zen/game/players/${PLAYER}/enc.secret.june" -k "$PASS" 2>/dev/null
|
||||
#~ openssl enc -aes-256-cbc -md sha512 -pbkdf2 -iter 100000 -salt -in "$HOME/.zen/game/players/${PLAYER}/secret.dunikey" -out "$HOME/.zen/game/players/${PLAYER}/enc.secret.dunikey" -k $PASS 2>/dev/null
|
||||
#~ openssl enc -aes-256-cbc -md sha512 -pbkdf2 -iter 100000 -salt -in "$HOME/.zen/game/players/${PLAYER}/$KEYFILE -out" "$HOME/.zen/game/players/${PLAYER}/enc.$KEYFILE" -k $PASS 2>/dev/null
|
||||
## TODO MORE SECURE ?! USE opengpg, natools, etc ...
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>CryptoJS Decryption</title>
|
||||
<script type="text/javascript" src="./crypto-js-4.1.1/aes.js"></script>
|
||||
<script type="text/javascript" src="./crypto-js-4.1.1/crypto-js.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h1>CryptoJS Decryption</h1>
|
||||
|
@ -24,7 +24,7 @@
|
|||
console.log(cryptText);
|
||||
console.log(decryptedWA.toString(CryptoJS.enc.Utf8));
|
||||
|
||||
//Decode from text
|
||||
//Decode from text
|
||||
var cipherParams = CryptoJS.lib.CipherParams.create({
|
||||
ciphertext: CryptoJS.enc.Base64.parse(cryptText )
|
||||
});
|
||||
|
|
|
@ -52,100 +52,4 @@
|
|||
</center>
|
||||
|
||||
|
||||
<div id="wrapper-auto-scrolling" style="display: none;"><div id="modal-auto-scrolling" class="modal">
|
||||
<a href="#close" class="modal-overlay" data-close-modal-auto-scrolling="" aria-label="Close"></a>
|
||||
<div class="modal-container">
|
||||
<div class="modal-header">
|
||||
<a href="#close" class="btn btn-clear float-right" data-close-modal-auto-scrolling="" aria-label="Close"></a>
|
||||
<div class="modal-title h3">Options | AutoScrolling</div>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div id="speed-wrapper-auto-scrolling">
|
||||
<strong>Scrolling speed(scroll/sec):</strong>
|
||||
<input type="number" class="scrolling-speed" id="scrolling-speed" value="20">
|
||||
<p>The value is scrolling speed. A unit is scroll / sec.<br>
|
||||
Max is 3000, and min is 1.</p>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Enable transmission scrolling:</strong>
|
||||
<input type="checkbox" id="enable-transmission-scrolling">
|
||||
<p class="mb-0">
|
||||
If enabled, you can change scrolling speed per gear.
|
||||
The gears are Slow / Middle / Fast.
|
||||
The gears are cycled between
|
||||
<mark>Slow</mark>, <mark>Middle</mark>, <mark>Fast</mark>
|
||||
by <i>single/double-clicking</i> browser icon.
|
||||
</p>
|
||||
<table id="transmission-wrapper-auto-scrolling" class="d-hide">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Fast:</th>
|
||||
<td><input type="number" class="scrolling-speed" id="transmission-gear-of-fast" value="2000">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Middle:</th>
|
||||
<td><input type="number" class="scrolling-speed" id="transmission-gear-of-middle" value="500">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Slow:</th>
|
||||
<td><input type="number" class="scrolling-speed" id="transmission-gear-of-slow" value="20">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<p></p>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Scrolling stop by click:</strong>
|
||||
<input type="checkbox" id="stop-scrolling-by-click">
|
||||
<p>If enabled the option, scrolling is stopped when you click the scrolling window.</p>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Stop scrolling by cursor hovering over something:</strong>
|
||||
<input type="checkbox" id="stop-scrolling-by-click-on-hover">
|
||||
<p>If enabled the option, scrolling is stopped temporally when mouse cursor is hovering over something.</p>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Keyboard shortcut for single-click action:</strong>
|
||||
<input type="text" id="keybind-single-click" value="Alt+Shift+PageDown">
|
||||
<p class="mb-0">Fire a single-click action by keyboard shortcut<br>
|
||||
</p><ul>
|
||||
<li>Start scrolling when window is stopped</li>
|
||||
<li>Stop scrolling when window is scrolling</li>
|
||||
<li>Close option modal window when the window is opened</li>
|
||||
</ul>
|
||||
The keybind should be a combination of keycodes concatenated with the '+' sign. <br>
|
||||
<i>Ex: Ctrl+Shift+Insert.</i><br>
|
||||
Check out the link for the keycodes: <a href="https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/commands#Key_combinations" target="_blank">Key combinations</a><br>
|
||||
<span class="text-gray">Notice: Some key combinations are reserved by the browser and can't be reassigned to this.<span><p></p>
|
||||
</span></span></div>
|
||||
<div>
|
||||
<strong>Stop scrolling on focus out:</strong>
|
||||
<input type="checkbox" id="stop-scrolling-on-focus-out">
|
||||
<p>If enabled the option, scrolling is stopped when focus for the browser is moved to another application or browser window.</p>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Disable double click action:</strong>
|
||||
<input type="checkbox" id="disable-double-click">
|
||||
<p class="mb-0">If enabled the option</p>
|
||||
<ul>
|
||||
<li>cannot open modal window</li>
|
||||
<li>start/stop scrolling is immediately</li>
|
||||
</ul>
|
||||
<p></p>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Restore scrolling from switch back:</strong>
|
||||
<input type="checkbox" id="restore-scrolling-from-switch-back">
|
||||
<p>If this option is enabled, scrolling which stopped by tab changing restarts when user is back to a tab that was scrolling.</p>
|
||||
</div>
|
||||
<div>
|
||||
<strong>Stop when bottom of window:</strong>
|
||||
<input type="checkbox" id="stop-when-bottom-of-window" checked="checked">
|
||||
<p>If enabled, scrolling is stopped when window position is reached at bottom.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div></div></body></html>
|
||||
</body></html>
|
||||
|
|
Loading…
Reference in New Issue