gpt4 book ai didi

javascript - 是否可以使用用户的视频卡在浏览器中计算 sha256 哈希值,例如。通过使用 WebGL 或 Flash?

转载 作者:数据小太阳 更新时间:2023-10-29 03:53:54 25 4
gpt4 key购买 nike

是否可以使用用户的视频卡在浏览器中计算 sha256 哈希值,例如。通过使用 WebGL 或 Flash?

恐怕这就是所有要问的,但如果需要更多详细说明,请随时在评论中告诉我。

谢谢。

最佳答案

这应该是可能的。给定 SHA 作为片段着色器的实现,您应该能够使用 readPixels 读回结果:

Read Back Pixels [5.13.12] Pixels in the current framebuffer can be read back into an ArrayBufferView object.

void readPixels(int x, int y, long width, long height, enum format, enum type, Object pixels)

format: RGBA

type: UNSIGNED_BYTE

来自 Kronos WebGL reference card (PDF)

如需额外加分,请按照 here 所述在屏幕外帧缓冲区中完成所有操作.

关于javascript - 是否可以使用用户的视频卡在浏览器中计算 sha256 哈希值,例如。通过使用 WebGL 或 Flash?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6395651/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com