bᥲkᥙg᥆
bᥲkᥙg᥆
Explore posts from servers
CDCloudflare Developers
Created by bᥲkᥙg᥆ on 8/19/2023 in #general-help
use cloudflare as vpn
ok
5 replies
CDCloudflare Developers
Created by bᥲkᥙg᥆ on 8/19/2023 in #general-help
use cloudflare as vpn
warp isn't working in my window server vps
5 replies
CDCloudflare Developers
Created by bᥲkᥙg᥆ on 8/1/2023 in #workers-help
forge.js availability
it's not there i check the page
9 replies
CDCloudflare Developers
Created by bᥲkᥙg᥆ on 8/1/2023 in #workers-help
forge.js availability
ok
9 replies
CDCloudflare Developers
Created by bᥲkᥙg᥆ on 8/1/2023 in #workers-help
forge.js availability
so it's not in worker currently right?
9 replies
CDCloudflare Developers
Created by bᥲkᥙg᥆ on 8/1/2023 in #workers-help
forge.js availability
i didn't found node:crypto
9 replies
CDCloudflare Developers
Created by bᥲkᥙg᥆ on 8/1/2023 in #workers-help
forge.js availability
name = "cloudflare-workers" main = "src/index.js" compatibility_date = "2023-07-31" compatibility_flags = [ "nodejs_compat" ]
9 replies
CDCloudflare Developers
Created by bᥲkᥙg᥆ on 8/1/2023 in #workers-help
forge.js availability
u mean the node js crypto? or the crypto that already have in cloudflare worker?
9 replies
CDCloudflare Developers
Created by bᥲkᥙg᥆ on 8/1/2023 in #workers-help
forge.js availability
i wast trying to implement api in cloudflare worker to generate deviceId but my function uses crypto library and i don't find the same function in cloudflare crypto:
using nodejs crypto lib.

function getDeviceI() {
let id = crypto.randomBytes(20).toString("binary");
let hmac = crypto.createHmac(
"sha1",
Buffer.from(
"E7309ECC0953C6FA60005B2765F99DBBC965C8E9",
"hex"
)
);
hmac.update(Buffer.from(Buffer.from("19", "hex") + id, "binary"));
return "19" + Buffer.from(id, "binary").toString("hex") + hmac.digest("hex");
}
correct deviceId:19CEB4EB9340402020E054720BEBAF280A8CEA373CC6E00629C9CEB1B3CB14FD5ABC0D4F5896DBAD4E
using nodejs crypto lib.

function getDeviceI() {
let id = crypto.randomBytes(20).toString("binary");
let hmac = crypto.createHmac(
"sha1",
Buffer.from(
"E7309ECC0953C6FA60005B2765F99DBBC965C8E9",
"hex"
)
);
hmac.update(Buffer.from(Buffer.from("19", "hex") + id, "binary"));
return "19" + Buffer.from(id, "binary").toString("hex") + hmac.digest("hex");
}
correct deviceId:19CEB4EB9340402020E054720BEBAF280A8CEA373CC6E00629C9CEB1B3CB14FD5ABC0D4F5896DBAD4E
9 replies
CDCloudflare Developers
Created by bᥲkᥙg᥆ on 7/31/2023 in #workers-help
worker crypto
i have to generate valid deviceId since it's being used in api
7 replies
CDCloudflare Developers
Created by bᥲkᥙg᥆ on 7/31/2023 in #workers-help
worker crypto
nah
7 replies