Skip to content

Instantly share code, notes, and snippets.

View saashqdev's full-sized avatar

SaashqDev saashqdev

View GitHub Profile
@saashqdev
saashqdev / CryptoService.server.ts
Created December 3, 2025 00:35
NextRock crypto algorithm
import CryptoJS from "crypto-js";
function encrypt(text: string) {
const secret = process.env.CRYPTO_SECRET?.toString();
if (!secret) {
throw Error("CRYPTO_SECRET not set");
}
const ciphertext = CryptoJS.AES.encrypt(text, secret).toString();
return ciphertext;
}
@saashqdev
saashqdev / openshift-console.yaml
Created December 13, 2024 02:42 — forked from kvaps/openshift-console.yaml
Openshift-console for Kubernetes with OIDC
---
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
qbec.io/component: console
labels:
qbec.io/application: openshift-console
qbec.io/environment: stage
name: openshift-console