Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
stegano.db
Advanced tools
Readme
SteganoDB est une librairie légère écrite en TypeScript permettant de stocker et récupérer des données à l'intérieur d'images en utilisant la stéganographie. Elle vous permet d'incorporer des données JSON dans des images, offrant ainsi une manière créative et sécurisée de stocker des informations sensibles ou des configurations.
Vous pouvez installer Stegano.db via npm :
npm install stegano.db
import { SteganoDB } from "./lib";
const db = new SteganoDB('./default.png');
interface GunMetadata {
name: string;
ammo: number;
damage: {
head: number;
body: number;
leg: number;
};
}
interface PlayerMetadata {
nickname: string;
team: 'red' | 'blue';
areMod: boolean;
inventory: GunMetadata[];
}
const PlayerOne: PlayerMetadata = {
nickname: 'Kisakay',
team: 'red',
areMod: false,
inventory: [
{
name: 'ak-47',
ammo: 30,
damage: {
head: 70,
body: 40,
leg: 10
}
}
],
};
const PlayerTwo: PlayerMetadata = {
nickname: 'Sown',
team: 'red',
areMod: false,
inventory: [
{
name: 'm4a1-s',
ammo: 30,
damage: {
head: 70,
body: 30,
leg: 20
}
}
],
};
db.push('server.players', PlayerOne);
db.push('server.players', PlayerTwo);
db.get('server.players');
/*
[
{
nickname: "Kisakay",
team: "red",
areMod: false,
inventory: [
[Object ...]
],
}, {
nickname: "Sown",
team: "red",
areMod: false,
inventory: [
[Object ...]
],
}
]
*/
db.set("server.info", {
server_name: "Kisakay's Server",
slot: 3,
map: 'dust2'
});
db.get('server');
/*
{
players: [
{
nickname: "Kisakay",
team: "red",
areMod: false,
inventory: [
[Object ...]
],
}, {
nickname: "Sown",
team: "red",
areMod: false,
inventory: [
[Object ...]
],
}
],
info: {
server_name: "Kisakay's Server",
slot: 3,
map: "dust2",
},
}
*/
db.get('server.info');
/*
{
server_name: "Kisakay's Server",
slot: 3,
map: "dust2",
}
*/
db.add('server.info.slot', 10);
// Server's slot is now at Current + 1 (2+10) : 12
db.sub('server.info.slot', 2);
// Server's slot is now at Current + 1 (12-2) : 10
db.clear();
// Entierly clear the database !!
db.cache('server.info.lock', true, 3000);
// Lock the server access for 30 000 ms; (Erase the value after the time's up)
db.all();
// Return the database
db.has('server.info.lock');
// Return an true if the value exist
db.delete('server');
// Remove the object/value
db.table('anticheat');
// Create an another database in the current directory where are the database (png file) (an 'table')
FAQs
Database in png lmao
The npm package stegano.db receives a total of 11 weekly downloads. As such, stegano.db popularity was classified as not popular.
We found that stegano.db demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.