Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

ring write the key and the IV directly using strings

See "Enter a string : " give cStr

# Note: Don't use simple key in real applications!
cKey = "1234567890@#$%^&"
cIV  = "FEDCBA0987654321"

cStr = Encrypt(cStr,cKey,cIV,"aes128")
See "Cipher Text    : " + cStr + nl +
    "Plain Text     : " + Decrypt(cStr,cKey,cIV,"aes128") + nl
Source by ring-lang.github.io #
 
PREVIOUS NEXT
Tagged: #ring #write #key #IV #strings
ADD COMMENT
Topic
Name
3+5 =