Encryptor

FREEMIUM
By Suparva | Updated a month ago | Tools
Popularity

8.6 / 10

Latency

577ms

Service Level

100%

Health Check

100%

README

Encryptor API

The Encryptor API offers secure data encryption, decryption, and static encryption (MD5 hashing) services. This API utilizes advanced cryptographic techniques to ensure the confidentiality of sensitive information.

Endpoints

1. Encryption

Encryption: /data_encryption

Method: GET

Parameters:

  • data (required): Text data to be encrypted.
  • password (optional): Password for encryption. If not provided, a random password will be generated.
NODE JS:
const axios = require('axios');

const options = {
  method: 'GET',
  url: 'https://encryptor.p.rapidapi.com/data_encryption',
  params: {
    data: 'Hello world!'
  },
  headers: {
    'X-RapidAPI-Key': 'Your-RapidAPI-Key',
    'X-RapidAPI-Host': 'encryptor.p.rapidapi.com'
  }
};

try {
  const response = await axios.request(options);
  console.log(response.data);
} catch (error) {
  console.error(error);
}
PYTHON:
import requests

url = "https://encryptor.p.rapidapi.com/data_encryption"

querystring = {"data": "Hello world!"}

headers = {
  "X-RapidAPI-Key": "Your-RapidAPI-Key",
  "X-RapidAPI-Host": "encryptor.p.rapidapi.com"
}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())

JavaScript:
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', 'https://encryptor.p.rapidapi.com/data_encryption?data=Hello%20world!');
xhr.setRequestHeader('X-RapidAPI-Key', 'Your-RapidAPI-Key');
xhr.setRequestHeader('X-RapidAPI-Host', 'encryptor.p.rapidapi.com');

xhr.send(data);

Encryption Method:

  • The API uses Fernet symmetric encryption with a secure key derived using PBKDF2HMAC (SHA256).

2. Decryption

Decryption: /data_decryption

Method: GET

Parameters:

  • data (required): Encrypted data.
  • password (optional): Password for decryption.
NODE JS:
const axios = require('axios');

const options = {
  method: 'GET',
  url: 'https://encryptor.p.rapidapi.com/data_decryption',
  params: {
    data: 'encrypted_data',
    password: 'your_password'
  },
  headers: {
    'X-RapidAPI-Key': 'Your-RapidAPI-Key',
    'X-RapidAPI-Host': 'encryptor.p.rapidapi.com'
  }
};

try {
  const response = await axios.request(options);
  console.log(response.data);
} catch (error) {
  console.error(error);
}

PYTHON:
import requests

url = "https://encryptor.p.rapidapi.com/data_decryption"

querystring = {
  "data": "encrypted_data",
  "password": "your_password"
}

headers = {
  "X-RapidAPI-Key": "Your-RapidAPI-Key",
  "X-RapidAPI-Host": "encryptor.p.rapidapi.com"
}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())


JavaScript:
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', 'https://encryptor.p.rapidapi.com/data_decryption?data=encrypted_data&password=your_password');
xhr.setRequestHeader('X-RapidAPI-Key', 'Your-RapidAPI-Key');
xhr.setRequestHeader('X-RapidAPI-Host', 'encryptor.p.rapidapi.com');

xhr.send(data);


Decryption Method:

  • The API uses Fernet symmetric decryption with a key derived using PBKDF2HMAC (SHA256).

3. Static Encryption (MD5 Hashing)

Decryption: /static_encryption

Method: GET

Parameters:

  • data (required): Text data to be hashed using MD5.
NODE JS:
const axios = require('axios');

const options = {
  method: 'GET',
  url: 'https://encryptor.p.rapidapi.com/static_encryption',
  params: {
    data: 'Example Password'
  },
  headers: {
    'X-RapidAPI-Key': 'Your-RapidAPI-Key',
    'X-RapidAPI-Host': 'encryptor.p.rapidapi.com'
  }
};

try {
  const response = await axios.request(options);
  console.log(response.data);
} catch (error) {
  console.error(error);
}


PYTHON:
import requests

url = "https://encryptor.p.rapidapi.com/static_encryption"

querystring = {"data": "Example Password"}

headers = {
  "X-RapidAPI-Key": "Your-RapidAPI-Key",
  "X-RapidAPI-Host": "encryptor.p.rapidapi.com"
}

response = requests.get(url, headers=headers, params=querystring)

print(response.json())


JavaScript:
const data = null;

const xhr = new XMLHttpRequest();
xhr.withCredentials = true;

xhr.addEventListener('readystatechange', function () {
  if (this.readyState === this.DONE) {
    console.log(this.responseText);
  }
});

xhr.open('GET', 'https://encryptor.p.rapidapi.com/static_encryption?data=Example%20Password');
xhr.setRequestHeader('X-RapidAPI-Key', 'Your-RapidAPI-Key');
xhr.setRequestHeader('X-RapidAPI-Host', 'encryptor.p.rapidapi.com');

xhr.send(data);



Hashing Method:

  • The API uses MD5 hashing to encrypt text data securely.

Security Considerations

- Data Protection:

  • The API employs strong encryption methods to protect sensitive data during transmission.
  • Ensure secure transmission by deploying the API over HTTPS.

- RapidAPI Key:

  • Use your RapidAPI key securely and avoid exposing it in public repositories or unauthorized access.

Followers: 3
Resources:
Terms of use
API Creator:
Rapid account: Suparva
Suparva
suparvabaranwal4
Log In to Rate API
Rating: 4 - Votes: 2