Hugo Mota
Hugo Mota

Reputation: 11547

is there a native alternative to mcrypt?

i need to encrypt some data but i guess mcrypt library is not native in php right? is there a secure and native alternative?

obs: i created my own solution but the performance wasn't good =/

Upvotes: 2

Views: 3602

Answers (3)

Theodore R. Smith
Theodore R. Smith

Reputation: 23231

mcrypt

mcrypt support enabled Version 2.5.8 Api No 20021217 Supported ciphers cast-128 gost rijndael-128 twofish arcfour cast-256 loki97 rijndael-192 saferplus wake blowfish-compat des rijndael-256 serpent xtea blowfish enigma rc2 tripledes Supported modes cbc cfb ctr ecb ncfb nofb ofb stream

Directive Local Value Master Value mcrypt.algorithms_dir no value no value mcrypt.modes_dir no value no value

Upvotes: 0

Nathan Hess
Nathan Hess

Reputation: 731

The only native solution is the native solutions :/ You have to compile PHP for it. Alternatively, you could write your own solution in C and use it as an extension. I'm pretty sure those are you only options.

Upvotes: 0

grin
grin

Reputation: 8201

There's a PHP library for Mcrypt. The documentation is here. It should already be installed. If it isn't there are instructions in the documentation on how to install it.

Upvotes: 2

Related Questions