ruby-mcrypt | Ruby bindings for libmcrypt | Cryptography library
kandi X-RAY | ruby-mcrypt Summary
kandi X-RAY | ruby-mcrypt Summary
Ruby bindings for libmcrypt (symmetric cryptography)
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ruby-mcrypt
ruby-mcrypt Key Features
ruby-mcrypt Examples and Code Snippets
Community Discussions
Trending Discussions on ruby-mcrypt
QUESTION
Hello I am having trouble encrypting using an array as the key and the value with the ruby-mcrypt gem. The gem lets me use an array for the key fine, cipher = Mcrypt.new("rijndael-256", :ecb, secret)
works. But it will give me an error when I try to encrypt. I've tried many things but no luck. Does anyone know if Mcrypt just doesn't like encrypting with an array?
ANSWER
Answered 2019-Jan-07 at 19:44The library doesn't support arrays. You'll need to use Strings instead:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ruby-mcrypt
On a UNIX-like operating system, using your system’s package manager is easiest. However, the packaged Ruby version may not be the newest one. There is also an installer for Windows. Managers help you to switch between multiple Ruby versions on your system. Installers can be used to install a specific or multiple Ruby versions. Please refer ruby-lang.org for more information.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page