将Asp.net迁移到Golang

huangapple go评论85阅读模式
英文:

Asp.net to Golang migration

问题

我需要将一个asp.net应用迁移到React前端和Golang后端。

由于asp.net应用将被废弃,所以我正在为前端使用React和后端使用Golang设置API。

这样,我就面临着遗留的MSSQL数据库和其中已存在的记录。

这让我产生了以下问题:

MSSQL数据库中的每个用户都有一个分配的密码哈希值,我需要知道它是如何创建的,以便我可以在Golang中重新创建它。我需要这个信息来验证用户的密码,并且我还可以使用相同的哈希算法创建新用户以保持一致性。

希望我的表述清楚。

谢谢。

英文:

I need to migrate an application from asp.net to React FrontEnd with a Golang backend.

The Asp.net app is to be decommissioned so I am setting API in Golang and React for the front end.

So this leaves me with the legacy MSSQL database and the records that are existing.

This leads me to the question which is as follows;

Each user in the MSSQL database has a password hash assigned to it, I need to know how that was created so that I can recreate this in Golang. I need this so that I can validate users' passwords using Go and I can also create new users with the same hashing for consistency.

I hope that this is clear.

Thanks

答案1

得分: 1

我找到了一个可以实现这个的库。

https://github.com/SuNNjek/identity

英文:

I Managed to find a library to achieve this.

https://github.com/SuNNjek/identity

huangapple
  • 本文由 发表于 2022年3月23日 21:51:56
  • 转载请务必保留本文链接:https://go.coder-hub.com/71588390.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定