I
I
ixon2016-06-11 14:36:43
Perl
ixon, 2016-06-11 14:36:43

What is the analogue of crypt from perl in javascript?

There is a perl code that outputs a string of 10 characters ( ozOtJW9BFA ) generated by crypt.
print substr(crypt("password", "as"), -10);
You need to translate this code into javascript, everything seems to be simple, however, in js there seems to be no analogue of crypt. What to do? Maybe there is some library that adds crypt to js?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Burov, 2016-06-11
@ixon

https://github.com/sytelus/CryptoJS

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question