• Earn real money by being active: Hello Guest, earn real money by simply being active on the forum — post quality content, get reactions, and help the community. Once you reach the minimum credit amount, you’ll be able to withdraw your balance directly. Learn how it works.

Crypter Hat Encrypt-Decrypt Files

Status
Not open for further replies.

dEEpEst

☣☣ In The Depths ☣☣
Staff member
Administrator
Super Moderator
Hacker
Specter
Crawler
Shadow
Joined
Mar 29, 2018
Messages
13,861
Solutions
4
Reputation
32
Reaction score
45,552
Points
1,813
Credits
55,350
‎7 Years of Service‎
 
56%
This link is hidden for visitors. Please Log in or register now.





This link is hidden for visitors. Please Log in or register now.
 
This link is hidden for visitors. Please Log in or register now.
 
This link is hidden for visitors. Please Log in or register now.


This link is hidden for visitors. Please Log in or register now.


This link is hidden for visitors. Please Log in or register now.
 is a javascript app that provides secure file encryption using the 
This link is hidden for visitors. Please Log in or register now.
 algorithm from 
This link is hidden for visitors. Please Log in or register now.
 provided by your browser. it was coded following the WebCrypto 
This link is hidden for visitors. Please Log in or register now.
 .

It's fastsecure and Serverless, the app never uploads the files to the server.

in a small amount of code the app can encrypt any type of files at any size within seconds.

To use the app all you have to do is Browse a file, Type a Decryption Key or Generate one through our secure key generator. and your encrypted file is ready to download.


How to use


just simply browse a file, type a decryption key or use our secure key generator, and encrypt or decrypt.

This link is hidden for visitors. Please Log in or register now.



Offline Use


the app is cross-platform and is available to download on 
This link is hidden for visitors. Please Log in or register now.
 , 
This link is hidden for visitors. Please Log in or register now.
 and 
This link is hidden for visitors. Please Log in or register now.



Requirements


This link is hidden for visitors. Please Log in or register now.


This link is hidden for visitors. Please Log in or register now.
 which lets you require('modules') in the browser by bundling up all of your dependencies.


Installation


Download or clone the repository

To see this hidden content, you must like this content.
go to the app directory

cd [app directory]



open terminal and install the node modules that are in the package.json file

sudo npm install



after the packages are installed bundle main app.js and modules together in one file using Browserify

browserify src/js/app.js -o bundle.js



then start the app by running index.html


Browser Compatibility


We officially support the last two versions of every major browser. Specifically, we test on the following

  • Chrome on Windows, macOS, and Linux , IOS, Android
  • Firefox on Windows, macOS, and Linux
  • Safari on iOS and macOS
  • Edge on Windows
  • IE 11 on Windows

for more info see 
This link is hidden for visitors. Please Log in or register now.
home page 
This link is hidden for visitors. Please Log in or register now.



Crypto Examples



AES-GCM - generateKey


window.crypto.subtle.generateKey(
{
name: "AES-GCM",
length: 256,
},
true,
["encrypt", "decrypt"]
)
.then(function(key){
console.log(key);
})
.catch(function(err){
console.error(err);
});

AES-GCM - importKey


Code:
[COLOR=#d73a49]function[/COLOR] [COLOR=#6f42c1]importSecretKey[/COLOR]([COLOR=#24292e]rawKey[/COLOR]) {
    [COLOR=#d73a49]return[/COLOR] [COLOR=#005cc5]window[/COLOR].[COLOR=#005cc5]crypto[/COLOR].[COLOR=#24292e]subtle[/COLOR].[COLOR=#6f42c1]importKey[/COLOR](
      [COLOR=#032f62]"[/COLOR]raw[COLOR=#032f62]"[/COLOR],
      rawKey,
      [COLOR=#032f62]"[/COLOR]AES-GCM[COLOR=#032f62]"[/COLOR],
      [COLOR=#005cc5]true[/COLOR],
      [[COLOR=#032f62]"[/COLOR]encrypt[COLOR=#032f62]"[/COLOR], [COLOR=#032f62]"[/COLOR]decrypt[COLOR=#032f62]"[/COLOR]]
    );
  }
.[COLOR=#005cc5]then[/COLOR]([COLOR=#d73a49]function[/COLOR]([COLOR=#24292e]key[/COLOR]){
    [COLOR=#6f42c1]console[/COLOR].[COLOR=#005cc5]log[/COLOR](key);
})
.[COLOR=#005cc5]catch[/COLOR]([COLOR=#d73a49]function[/COLOR]([COLOR=#24292e]err[/COLOR]){
    [COLOR=#6f42c1]console[/COLOR].[COLOR=#005cc5]error[/COLOR](err);
});

AES-GCM - exportKey


Code:
[COLOR=#d73a49]async[/COLOR] [COLOR=#d73a49]function[/COLOR] [COLOR=#6f42c1]exportCryptoKey[/COLOR]([COLOR=#24292e]key[/COLOR]) {
    [COLOR=#d73a49]const[/COLOR] [COLOR=#005cc5]exported[/COLOR] [COLOR=#d73a49]=[/COLOR] [COLOR=#d73a49]await[/COLOR] [COLOR=#005cc5]window[/COLOR].[COLOR=#005cc5]crypto[/COLOR].[COLOR=#24292e]subtle[/COLOR].[COLOR=#6f42c1]exportKey[/COLOR](
      [COLOR=#032f62]"[/COLOR]raw[COLOR=#032f62]"[/COLOR],
      key
    )
.[COLOR=#005cc5]then[/COLOR]([COLOR=#d73a49]function[/COLOR]([COLOR=#24292e]keydata[/COLOR]){
    [COLOR=#6f42c1]console[/COLOR].[COLOR=#005cc5]log[/COLOR](keydata);
})
.[COLOR=#005cc5]catch[/COLOR]([COLOR=#d73a49]function[/COLOR]([COLOR=#24292e]err[/COLOR]){
    [COLOR=#6f42c1]console[/COLOR].[COLOR=#005cc5]error[/COLOR](err);
});

AES-GCM - encrypt


Code:
[COLOR=#d73a49]async[/COLOR] [COLOR=#d73a49]function[/COLOR] [COLOR=#6f42c1]encryptMessage[/COLOR]([COLOR=#24292e]key[/COLOR]) {
    [COLOR=#d73a49]let[/COLOR] encoded [COLOR=#d73a49]=[/COLOR] [COLOR=#6f42c1]getMessageEncoding[/COLOR]();
    [COLOR=#6a737d]//[/COLOR] The iv must never be reused with a given key.
    iv [COLOR=#d73a49]=[/COLOR] [COLOR=#005cc5]window[/COLOR].[COLOR=#005cc5]crypto[/COLOR].[COLOR=#6f42c1]getRandomValues[/COLOR]([COLOR=#d73a49]new[/COLOR] [COLOR=#6f42c1]Uint8Array[/COLOR]([COLOR=#005cc5]12[/COLOR]));
    ciphertext [COLOR=#d73a49]=[/COLOR] [COLOR=#d73a49]await[/COLOR] [COLOR=#005cc5]window[/COLOR].[COLOR=#005cc5]crypto[/COLOR].[COLOR=#24292e]subtle[/COLOR].[COLOR=#6f42c1]encrypt[/COLOR](
            {
                name[COLOR=#d73a49]:[/COLOR] [COLOR=#032f62]"[/COLOR]AES-GCM[COLOR=#032f62]"[/COLOR],
                iv[COLOR=#d73a49]:[/COLOR] iv
            },
            key,
            encoded
        )
        .[COLOR=#005cc5]then[/COLOR]([COLOR=#d73a49]function[/COLOR] ([COLOR=#24292e]encrypted[/COLOR]) {
            [COLOR=#6f42c1]console[/COLOR].[COLOR=#005cc5]log[/COLOR]([COLOR=#d73a49]new[/COLOR] [COLOR=#6f42c1]Uint8Array[/COLOR](encrypted));
        })
        .[COLOR=#005cc5]catch[/COLOR]([COLOR=#d73a49]function[/COLOR] ([COLOR=#24292e]err[/COLOR]) {
            [COLOR=#6f42c1]console[/COLOR].[COLOR=#005cc5]error[/COLOR](err);
        });
}

AES-GCM - decrypt


Code:
[COLOR=#d73a49]async[/COLOR] [COLOR=#d73a49]function[/COLOR] [COLOR=#6f42c1]decryptMessage[/COLOR]([COLOR=#24292e]key[/COLOR]) {
    [COLOR=#d73a49]let[/COLOR] encoded [COLOR=#d73a49]=[/COLOR] [COLOR=#6f42c1]getMessageEncoding[/COLOR]();
    [COLOR=#d73a49]let[/COLOR] decrypted [COLOR=#d73a49]=[/COLOR] [COLOR=#d73a49]await[/COLOR] [COLOR=#005cc5]window[/COLOR].[COLOR=#005cc5]crypto[/COLOR].[COLOR=#24292e]subtle[/COLOR].[COLOR=#6f42c1]decrypt[/COLOR]({
            name[COLOR=#d73a49]:[/COLOR] [COLOR=#032f62]"[/COLOR]AES-GCM[COLOR=#032f62]"[/COLOR],
            iv[COLOR=#d73a49]:[/COLOR] iv
        },
        key,
        ciphertext
       )
       .[COLOR=#005cc5]then[/COLOR]([COLOR=#d73a49]function[/COLOR] ([COLOR=#24292e]decrypted[/COLOR]) {
            [COLOR=#6f42c1]console[/COLOR].[COLOR=#005cc5]log[/COLOR]([COLOR=#d73a49]new[/COLOR] [COLOR=#6f42c1]Uint8Array[/COLOR](encrypted));
        })
        .[COLOR=#005cc5]catch[/COLOR]([COLOR=#d73a49]function[/COLOR] ([COLOR=#24292e]err[/COLOR]) {
            [COLOR=#6f42c1]console[/COLOR].[COLOR=#005cc5]error[/COLOR](err);
        });
}

Source:

To see this hidden content, you must like this content.
Tool Online:

To see this hidden content, you must like this content.
 
Last edited by a moderator:
Status
Not open for further replies.
Back
Top