python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Decrypt AES/CBC/PKCS5Padding in Rhino JS
I am trying to decrypt the below value in my js script. The engine is Rhino javascript 1.7.13.
"{$crypto={type=x-simple-encryption, value={cipher=AES/CBC/PKCS5Padding, stableId=openidm-sym-defaul...
Karan Nayyar
Votes: 0
Answers: 1
How can we generate Random Salt of 32 bytes in Rhino JS
I am trying to generate a random salt of 32 bytes size. But my JS engine Rhino 1.7.13 doesn't support SecureRandom class.
Below is the code snippet of the same.
function getSalt() {
var random = n...
Karan Nayyar
Votes: 0
Answers: 1
TypeError: Cannot call property getEncoder in object
I am trying to encode byte array using java package Base64 in a javascript. Javascript engine is Rhino.
Below is the error in logs.
java.util.concurrent.ExecutionException: javax.script.ScriptExceptio...
Karan Nayyar
Votes: 0
Answers: 1
How to compare two strings case insensitive in Rhino js
I intend to check if a string is a substring of another string. However, case insensitive match is not possible since toLowerCase() and toUpperCase() methods are not supported in Rhino 1.7.13.
var s...
Karan Nayyar
Votes: 0
Answers: 1