johngirvin / godot-ncrypt Goto Github PK
View Code? Open in Web Editor NEWCryptographic Primitives in GDScript for Godot Engine
License: MIT License
Cryptographic Primitives in GDScript for Godot Engine
License: MIT License
Found while attempting the simple:
HMACSHA256.hmac_base64("TEST".to_ascii(), "TEST".to_ascii())
E 0:00:00.397 hex_to_int64: Cannot represent 0xffffffffffffffff as 64-bit integer, provided value is too big.
<C++ Error> Condition "overflow" is true. Returned: sign == 1 ? 9223372036854775807LL : (-9223372036854775807LL-1)
<C++ Source> core/ustring.cpp:1749 @ hex_to_int64()
I'm attempting to use AR4 to send encrypted calls to Newground's API, however the Newgrounds server is unable to decrypt it. I want to know if my issue is with how I'm using the encryption function or if it is with some other issue. Is the following code a good example of how to use the ARCFOUR.encrypt_base64
function?
var key_base64 = "3xamp13 k3y" #The key can be a Base64 string or a hex string
var input_string = JSON.print( {"data":"stuff"} )
var key_bytes:PoolByteArray = key_base64.to_ascii()
var input_bytes:PoolByteArray = input_string.to_ascii()
var encrypted:String = ARCFOUR.encrypt_base64(input_bytes, key_bytes) #Must output as Base64 or hex
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.