Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const g_Key = "%$#¨$TYFTYFUCFSUG g guf7t6iwit&y80u?¦4ì4¦H-+bâ¦??v)µtFTOd8fn=±l=(-+²¦°a(^/;.´~ç´~]ç´[234]~23ç4[´ç342]~3ç423].;23.]4ç23[´4çrsd]fsdofhs9890=-f09gdlfç[´´`^]~[~[~[´~]~[^^]~]^[´~]~]~[;[~/]~[]~[~[~];ç´[~q[sd~[a~dkajdioasdjmasdpaisdjåb415?56??1?U¦6546"
- function EnCrypt (strCryptThis) {
- let iKeyChar;
- let iStringChar;
- let iCryptChar
- let strEncrypted;
- for (i = 1; i < strCryptThis.length; i++) {
- iKeyChar = g_Key.charCodeAt(g_Key.substring(i, 0))
- iStringChar = strCryptThis.charCodeAt(strCryptThis.substring(i, 0))
- iCryptChar = (iKeyChar && !iStringChar) || (!iKeyChar && iStringChar)
- if (iCryptChar == false) {
- iCryptChar = 0
- } else {
- iCryptChar = 1
- }
- iCryptChar = (iCryptChar + i)
- console.log
- iCryptChar = iCryptChar % 256
- if (iCryptChar.length = 1) {
- strEncrypted = strEncrypted + "if1" + iCryptChar.toString()
- } else if (iCryptChar.length = 2) {
- strEncrypted = strEncrypted + "if2" + iCryptChar.toString()
- } else if (iCryptChar.length = 3) {
- strEncrypted = strEncrypted + iCryptChar.toString()
- }
- return strEncrypted;
- }
- }
- console.log(EnCrypt("fabiano"));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement