Skip to content

Commit 73e0ab6

Browse files
committed
Added new alias String.encryptUID() and String.decryptUID()
1 parent e8d3e1c commit 73e0ab6

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

changes.txt

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
- added: support for `.mjs` extensions
4343
- added: a simple support for DDOS protection `allow_reqlimit : Number` (max. concurent requests by IP just-in-time)
4444
- added: unit-testing supports colors, added by @dacrhu
45+
- added: `String.encryptUID()` as alias for `U.encryptUID()`
46+
- added: `String.decryptUID()` as alias for `U.decryptUID()`
4547

4648
- updated: `WEBSOCKET()` supports `+`, `-` and `🔒` as authorization flags
4749
- updated: `LOAD()` supports `service` type

utils.js

+8
Original file line numberDiff line numberDiff line change
@@ -4017,6 +4017,14 @@ SP.format = function() {
40174017
});
40184018
};
40194019

4020+
SP.encryptUID = function(key) {
4021+
return exports.encryptUID(this, key);
4022+
};
4023+
4024+
SP.decryptUID = function(key) {
4025+
return exports.decryptUID(this, key);
4026+
};
4027+
40204028
SP.encode = function() {
40214029
var output = '';
40224030
for (var i = 0, length = this.length; i < length; i++) {

0 commit comments

Comments
 (0)