Jump to content

The ISAAC cipher: Difference between revisions

m
→‎{{header|Sidef}}: modified the code to work with Sidef 2.30
m (→‎{{header|Common Lisp}}: Removed some misleading information in comments)
m (→‎{{header|Sidef}}: modified the code to work with Sidef 2.30)
Line 3,263:
 
func xor_isaac(key, msg) {
var rng = %s'<Math::Random::ISAAC'>.new(unpack('C*', key));
 
msg.chars»ord»() \
-> »^« 256.of{ rng.irand % 95 + 32 }.last(msg.len).reverse \
-> «%« '%02X' -> join;
}
2,747

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.